package com.blueocean_health.care.management.mapper;

import com.blueocean_health.care.management.domain.base.SingleService;
import com.blueocean_health.care.management.domain.dto.SingleServiceDto;
import com.blueocean_health.care.management.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface SingleServiceMapper extends MyMapper<SingleService> {

    /**
     * 用户端首页  单项内容  2018年3月9日17:48:29
     * @return
     */
    List<SingleServiceDto> getSingleServiceInfo(Map<String,String> map);

    @Select("SELECT *FROM single_service WHERE is_active = 0 and hospital_id =#{hid}")
    List<SingleService> queryAllSingleService(@Param("hid")Integer hid);
}